import { defineStore } from "pinia"

export const useLoginStore = defineStore('login', {
    state: () => ({ count: 0 }),
    getters: {
        double: (state) => state.count * 2,
    },
    actions: {
        increment() {
            this.count++
        },
    },
});
export const isLoadingStore = defineStore('Loading', {
    state: () => ({
        isLoading: false,
        userNmae: ""
    }),
    actions: {    
        changeIsLoading(val:boolean) {
            this.isLoading = val;
        },

        getUserNmae(data:string) {
            this.userNmae = data
        }
       
    },
});
